package com.test.service.feign;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloFeignController
{
    /**
     *
     * @param name 参数一定要加注释， 不然不识别
     * @return
     */
    @GetMapping("/feign/test")
    public String HelloFeignSay(@RequestParam("name") String name){
        return " this is feign test,name is " + name ;
    }
}
